﻿using System.Collections.Generic;
using UnityEngine;

public class ArrowRainEffectSystem : EffectSystem
{
    public int damageA;
    private AutoTargetEffect autoTargetEffect;

    protected override void SetupByProNumber()
    {
        Mana = 2 - ProNumber;
        damageA = 120 + 2 * ProNumber;
        Description = $"对所有敌人造成{damageA}点伤害。";

        autoTargetEffect = new AutoTargetEffect()
        {
            TargetMode = new AllEnemiesTM(),
            Effect = new DealDamageEffect() { damageAmount = damageA }
        };
    }

    public override List<AutoTargetEffect> OtherEffects => new List<AutoTargetEffect> { autoTargetEffect };
}
